﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using DoAn.DAO;
using DoAn.DTO;
namespace DoAn.BUS
{
    public class DanhMucBUS
    {
        public static DataTable loadDanhMuc()
        {
            return DanhMucDAO.loadDanhMuc();
        }
        public static DataTable loadDanhMucCha()
        {
            return DanhMucDAO.loadDanhMucCha();
        }
        public static int layMaDanhMucCha(DanhMucDTO dm)
        {
            return DanhMucDAO.layMaDanhMucCha(dm);
        }
        public static int layMaDanhMucCon(DanhMucDTO dm)
        {
            return DanhMucDAO.layMaDanhMucCon(dm);
        }
        public static string layTenDanhMuc(DanhMucDTO dm)
        {
            return DanhMucDAO.layTenDanhMuc(dm);    
        }
        public static List<int> laylistma(int ma)
        {
            return DanhMucDAO.arrmangdanhmuccon(ma);
        }
    }
}